const result = (a)=>{
    return function(b){
        return function(c){
            return a+b+c
        }
    }
}
console.log(result(10)(20)(30))